package com.dmjj.limit.service.impl;

import com.dmjj.common.base.BaseMapper;
import com.dmjj.common.base.BaseServiceImpl;
import com.dmjj.limit.dao.ScopeMapper;
import com.dmjj.limit.dto.ScopeDTO;
import com.dmjj.limit.service.ScopeService;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.stereotype.Service;
import java.util.List;


/**
 * 东二环店 办公室 1业务处理接口
 * @Author zhangxue
 * @Date 2019-03-21 09:40:56
 */
@Service
public class ScopeServiceImpl extends BaseServiceImpl<ScopeDTO, Long> implements ScopeService {

    private static final Log LOGGER = LogFactory.getLog(ScopeServiceImpl.class);

    @Autowired
    private ScopeMapper mapper;

    @Override
    protected BaseMapper<ScopeDTO, Long> getMapper() {
        return mapper;
    }

    /**
     * 东二环店 办公室 1列表
     * @Author zhangxue
     * @Date 2019-03-21 09:40:56
     * @Param
     * @Return
     */
    @Override
    public List<ScopeDTO> list4Page(ScopeDTO entity, Integer pageNum, Integer... pageSize) {
        return super.list4Page(entity, pageNum, pageSize);
    }

    /**
     * 东二环店 办公室 1列表（无分页）
     * @Author zhangxue
     * @Date 2019-03-21 09:40:56
     * @Param
     * @Return
     */
    @Override
    public List<ScopeDTO> listByCondition(ScopeDTO entity) {
        return super.listByCondition(entity);
    }

    /**
     * 查询东二环店 办公室 1详情信息
     * @Author zhangxue
     * @Date 2019-03-21 09:40:56
     * @Param
     * @Return
     */
    @Override
    public ScopeDTO queryOneByPk(Long id) {
        return super.queryOneByPk(id);
    }

    /**
     * 保存东二环店 办公室 1信息
     * @Author zhangxue
     * @Date 2019-03-21 09:40:56
     * @Param
     * @Return
     */
    @Override
    @Transactional
    public Long save(ScopeDTO entity) {
        return super.save(entity);
    }

    /**
     * 删除东二环店 办公室 1信息
     * @Author zhangxue
     * @Date 2019-03-21 09:40:56
     * @Param
     * @Return
     */
    @Override
    @Transactional
    public Integer delete(Long id) {
        return super.delete(id);
    }
}
